<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>HexFiend: HFFileReference.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">HexFiend
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">HFFileReference.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_h_f_file_reference_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">//  HFFileReference.h</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">//  HexFiend_2</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  Copyright 2008 ridiculous_fish. All rights reserved.</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#import &lt;Cocoa/Cocoa.h&gt;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="interface_h_f_file_reference.html">   19</a></span>&#160;<span class="keyword">@interface </span><a class="code" href="interface_h_f_file_reference.html">HFFileReference</a> : NSObject {</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="keyword">@protected</span></div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="interface_h_f_file_reference.html#a5920cc8cc72ffeeb64d1392af4b35eea">   21</a></span>&#160;    <span class="keywordtype">int</span> fileDescriptor;</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="interface_h_f_file_reference.html#a96407283d05981a38b695a188872f619">   22</a></span>&#160;    dev_t device;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> inode;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span> fileLength;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    mode_t fileMode;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    BOOL isWritable;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    uint32_t blockSize;</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    BOOL <a class="code" href="interface_h_f_file_reference.html#a5920cc8cc72ffeeb64d1392af4b35eea">isPrivileged</a>;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    BOOL <a class="code" href="interface_h_f_file_reference.html#a96407283d05981a38b695a188872f619">isFixedLength</a>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;}</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">@property</span> (readonly) BOOL <a class="code" href="interface_h_f_file_reference.html#a5920cc8cc72ffeeb64d1392af4b35eea">isPrivileged</a>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">@property</span> (readonly) BOOL <a class="code" href="interface_h_f_file_reference.html#a96407283d05981a38b695a188872f619">isFixedLength</a>;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;- (instancetype)initWritableWithPath:(NSString *)path error:(NSError **)error;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;- (instancetype)initWithPath:(NSString *)path error:(NSError **)error;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;- (void)<a class="code" href="interface_h_f_file_reference.html#a3ed63c568c05f301fcd4b56056eaa779">close</a>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;- (void)readBytes:(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *)buff length:(NSUInteger)length from:(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>)offset;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;- (int)writeBytes:(const <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *)buff length:(NSUInteger)length to:(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>)offset;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;- (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> long)<a class="code" href="interface_h_f_file_reference.html#ad3e560b662a0fa7437d6d4c3e3f58c86">length</a>;</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;- (BOOL)setLength:(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">long</span>)length error:(NSError **)error;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;- (BOOL)isEqual:(<span class="keywordtype">id</span>)val;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="keyword">@end</span></div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="keyword">@interface </span><a class="code" href="interface_h_f_concrete_file_reference.html">HFConcreteFileReference</a> : <a class="code" href="interface_h_f_file_reference.html">HFFileReference</a></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keyword">@end</span></div><div class="ttc" id="interface_h_f_file_reference_html_ad3e560b662a0fa7437d6d4c3e3f58c86"><div class="ttname"><a href="interface_h_f_file_reference.html#ad3e560b662a0fa7437d6d4c3e3f58c86">-[HFFileReference length]</a></div><div class="ttdeci">unsigned long long length()</div></div>
<div class="ttc" id="interface_h_f_file_reference_html"><div class="ttname"><a href="interface_h_f_file_reference.html">HFFileReference</a></div><div class="ttdoc">A reference to an open file. </div><div class="ttdef"><b>Definition:</b> HFFileReference.h:19</div></div>
<div class="ttc" id="interface_h_f_file_reference_html_a3ed63c568c05f301fcd4b56056eaa779"><div class="ttname"><a href="interface_h_f_file_reference.html#a3ed63c568c05f301fcd4b56056eaa779">-[HFFileReference close]</a></div><div class="ttdeci">void close()</div></div>
<div class="ttc" id="interface_h_f_file_reference_html_a96407283d05981a38b695a188872f619"><div class="ttname"><a href="interface_h_f_file_reference.html#a96407283d05981a38b695a188872f619">HFFileReference::isFixedLength</a></div><div class="ttdeci">BOOL isFixedLength</div><div class="ttdef"><b>Definition:</b> HFFileReference.h:22</div></div>
<div class="ttc" id="interface_h_f_file_reference_html_a5920cc8cc72ffeeb64d1392af4b35eea"><div class="ttname"><a href="interface_h_f_file_reference.html#a5920cc8cc72ffeeb64d1392af4b35eea">HFFileReference::isPrivileged</a></div><div class="ttdeci">BOOL isPrivileged</div><div class="ttdef"><b>Definition:</b> HFFileReference.h:21</div></div>
<div class="ttc" id="interface_h_f_concrete_file_reference_html"><div class="ttname"><a href="interface_h_f_concrete_file_reference.html">HFConcreteFileReference</a></div><div class="ttdoc">A reference to an open file that can be read (and possibly written) using normal C functions...</div><div class="ttdef"><b>Definition:</b> HFFileReference.h:62</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>
